package com.heima.apis.wemedia;

import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.comment.dtos.NewsPageDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.AdWmNewsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia", contextId = "news")
public interface IWmNewsClient {

    @PostMapping("/api/v1/news/list_vo")
    ResponseResult list_vo(@RequestBody AdWmNewsDto dto);

    @PostMapping("/api/v1/news/auth_fail")
    ResponseResult authFail(@RequestBody NewsAuthDto dto);

    @PostMapping("/api/v1/news/auth_pass")
    ResponseResult authPass(@RequestBody NewsAuthDto dto);



    @GetMapping("/api/v1/news/one_vo/{id}")
    ResponseResult one_vo(@PathVariable("id") int id);

    @PostMapping("/api/v1/comment/manage/find_news_comments")
    PageResponseResult findNewsList(NewsPageDto dto);
}
